package com.itttq.gshop.generic;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.context.annotation.ComponentScan;
/**
 * 客户端调用的Application，作为其他客户端application的父类
 * @ClassName:  GenericApplication
 * @author: 迷蝶
 * @date:   2018年5月23日 下午3:42:17 
 *     
 * @Copyright: 2018 <a href="www.itttq.com" target="_blank">www.itttq.com</a> Inc. All rights reserved.
 */
@EnableDiscoveryClient	// 此注解表明为服务发现客户端
@EnableHystrix		    		// 断路器
@SpringBootApplication
@ComponentScan({"com.itttq.gshop.generic.*.**"})
@EnableFeignClients(basePackages="com.itttq.gshop.generic.connector")      // 启用feign进行远程调用
public class ClientGenericApplication extends GenericApplication {
}
